<template>
    <view>
        <uni-card
            v-for="(project, index) in projects"
            :key="index"
            :title="project.projectName"
            :extra="project.createTime"
            :note="project.projectDescription"
        >
		
            
                <view>
                    <text>项目链接: </text>
                    <a :href="project.projectUrl" target="_blank">{{ project.projectUrl }}</a>
                </view>
                <view>
                    <text>Git 链接: </text>
                    <a :href="project.projectGitUrl" target="_blank">{{ project.projectGitUrl }}</a>
                </view>
            
        </uni-card>
    </view>
</template>

<script>
export default {
    data() {
        return {
            projects: []
        };
    },
    methods: {},
    async mounted() {
        console.log('jjj');
       await uni.request({
       	url:'http://hkg.ggdogweb.top:8085/blogapi/project/getAllProject',
		success: (res) => {
			this.projects=res.data.data
			console.log(this.projects)
		}
       })
    }
};
</script>

<style>
/* 可以在这里添加样式 */
</style>    